package com.jackiechancinema.ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class OrderDate {
    private Integer id ;
    /** 用户 */
    private String username ;
    /** 操作类型 */
    private Integer type ;
    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time ;

    public OrderDate() {
    }

    public OrderDate(String username, Integer type, Date time) {
        this.username = username;
        this.type = type;
        this.time = time;
    }
}
